Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Assignment problem</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Assignment_problem"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.math.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Assignment_problem rootpage-Assignment_problem skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Assignment problem</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">

<p>The <b>assignment problem</b> is a fundamental <a href="Combinatorial_optimization" title="Combinatorial optimization">combinatorial optimization</a> problem. In its most general form, the problem is as follows:
</p>
<dl><dd>The problem instance has a number of <i>agents</i> and a number of <i>tasks</i>. Any agent can be assigned to perform any task, incurring some <i>cost</i> that may vary depending on the agent-task assignment. It is required to perform as many tasks as possible by assigning at most one agent to each task and at most one task to each agent, in such a way that the <i>total cost</i> of the assignment is minimized.</dd></dl>
<p>Alternatively, describing the problem using graph theory:
</p>
<dl><dd>The assignment problem consists of finding, in a <a href="Weighted_graph" class="mw-redirect" title="Weighted graph">weighted</a> <a href="Bipartite_graph" title="Bipartite graph">bipartite graph</a>, a <a href="Matching_(graph_theory)" title="Matching (graph theory)">matching</a> of maximum size, in which the sum of weights of the edges is minimum.</dd></dl>
<p>If the numbers of agents and tasks are equal, then the problem is called <b>balanced assignment</b>, and the graph-theoretic version is called <b>minimum-cost perfect matching</b>. Otherwise, it is called <b>unbalanced assignment</b>.<sup id="cite_ref-:0_1-0" class="reference"><a href="#cite_note-:0-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p><p>If the total cost of the assignment for all tasks is equal to the sum of the costs for each agent (or the sum of the costs for each task, which is the same thing in this case), then the problem is called <b>linear assignment</b>. Commonly, when speaking of the <i>assignment problem</i> without any additional qualification, then the <i>linear balanced assignment problem</i> is meant.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Examples">Examples</h2></div>
<p>Suppose that a taxi firm has three taxis (the agents) available, and three customers (the tasks) wishing to be picked up as soon as possible. The firm prides itself on speedy pickups, so for each taxi the "cost" of picking up a particular customer will depend on the time taken for the taxi to reach the pickup point. This is a <i>balanced assignment</i> problem. Its solution is whichever combination of taxis and customers results in the least total cost.
</p><p>Now, suppose that there are <i>four</i> taxis available, but still only three customers. This is an <i>unbalanced assignment</i> problem. One way to solve it is to invent a fourth dummy task, perhaps called "sitting still doing nothing", with a cost of 0 for the taxi assigned to it. This reduces the problem to a balanced assignment problem, which can then be solved in the usual way and still give the best solution to the problem.
</p><p>Similar adjustments can be done in order to allow more tasks than agents, tasks to which multiple agents must be assigned (for instance, a group of more customers than will fit in one taxi), or maximizing profit rather than minimizing cost.
</p>
<div class="mw-heading mw-heading2"><h2 id="Formal_definition">Formal definition</h2></div>
<p>The formal definition of the <b>assignment problem</b> (or <b>linear assignment problem</b>) is
</p>
<dl><dd>Given two sets, <i>A</i> and <i>T</i>, together with a <a href="Weight_function" title="Weight function">weight function</a> <i>C</i>&nbsp;: <i>A</i> × <i>T</i> → <b><a href="Real_number" title="Real number">R</a></b>. Find a <a href="Bijection" title="Bijection">bijection</a> <i>f</i>&nbsp;: <i>A</i> → <i>T</i> such that the <a href="Loss_function" title="Loss function">cost function</a>:
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \sum _{a\in A}C(a,f(a))}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>a</mi>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
</mrow>
</munder>
<mi>C</mi>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo>,</mo>
<mi>f</mi>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \sum _{a\in A}C(a,f(a))}</annotation>
</semantics>
</math></span><img src="./16b7eda822426d7a5f813f22e4905432c4ba79ac.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:13.899ex; height:5.676ex;" alt="{\displaystyle \sum _{a\in A}C(a,f(a))}" loading="lazy"></span></dd></dl></dd>
<dd>is minimized.</dd></dl>
<p>Usually the weight function is viewed as a square real-valued <a href="Matrix_(mathematics)" title="Matrix (mathematics)">matrix</a> <i>C</i>, so that the cost function is written down as:
</p>
<dl><dd><span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \sum _{a\in A}C_{a,f(a)}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>a</mi>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
</mrow>
</munder>
<msub>
<mi>C</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>a</mi>
<mo>,</mo>
<mi>f</mi>
<mo stretchy="false">(</mo>
<mi>a</mi>
<mo stretchy="false">)</mo>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \sum _{a\in A}C_{a,f(a)}}</annotation>
</semantics>
</math></span><img src="./3f06886751101bfff9065533c5c9f2d755ac2148.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.171ex; width:10.016ex; height:5.676ex;" alt="{\displaystyle \sum _{a\in A}C_{a,f(a)}}" loading="lazy"></span></dd></dl>
<p>The problem is "linear" because the cost function to be optimized as well as all the constraints contain only linear terms.
</p>
<div class="mw-heading mw-heading2"><h2 id="Algorithms">Algorithms</h2></div>
<p>A naive solution for the assignment problem is to check all the assignments and calculate the cost of each one. This may be very inefficient since, with <i>n</i> agents and <i>n</i> tasks, there are <i>n</i>! (<a href="Factorial" title="Factorial">factorial</a> of <i>n</i>) different assignments.
</p><p>Another naive solution is to greedily assign the pair with the smallest cost first, and remove the vertices; then, among the remaining vertices, assign the pair with the smallest cost; and so on. This algorithm may yield a non-optimal solution. For example, suppose there are two tasks and two agents with costs as follows:
</p>
<ul><li>Alice: Task 1 = 1, Task 2 = 2.</li>
<li>George: Task 1 = 5, Task 2 = 8.</li></ul>
<p>The greedy algorithm would assign Task 1 to Alice and Task 2 to George, for a total cost of 9; but the reverse assignment has a total cost of 7.
</p><p>Fortunately, there are many algorithms for finding the optimal assignment in time <a href="Polynomial_time" class="mw-redirect" title="Polynomial time">polynomial</a> in <i>n</i>. The assignment problem is a special case of the <a href="Transportation_problem" class="mw-redirect" title="Transportation problem">transportation problem</a>, which is a special case of the <a href="Minimum_cost_flow_problem" class="mw-redirect" title="Minimum cost flow problem">minimum cost flow problem</a>, which in turn is a special case of a <a href="Linear_program" class="mw-redirect" title="Linear program">linear program</a>. While it is possible to solve any of these problems using the <a href="Simplex_algorithm" title="Simplex algorithm">simplex algorithm</a>, or in worst-case polynomial time using the <a href="Ellipsoid_method" title="Ellipsoid method">ellipsoid method</a>, each specialization has a smaller solution space and thus more efficient algorithms designed to take advantage of its special structure.
</p>
<div class="mw-heading mw-heading3"><h3 id="Balanced_assignment">Balanced assignment</h3></div>
<p>In the balanced assignment problem, both parts of the bipartite graph have the same number of vertices, denoted by <i>n</i>.
</p><p>One of the first polynomial-time algorithms for balanced assignment was the <a href="Hungarian_algorithm" title="Hungarian algorithm">Hungarian algorithm</a>. It is a <i>global</i> algorithm&nbsp;– it is based on improving a matching along augmenting paths (alternating paths between unmatched vertices). Its run-time complexity, when using <a href="Fibonacci_heap" title="Fibonacci heap">Fibonacci heaps</a>, is <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle O(mn+n^{2}\log n)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>O</mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mi>n</mi>
<mo>+</mo>
<msup>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle O(mn+n^{2}\log n)}</annotation>
</semantics>
</math></span><img src="./e6c65ba1ec52875d490e86d8eed282c87ce738a0.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:17.448ex; height:3.176ex;" alt="{\displaystyle O(mn+n^{2}\log n)}" loading="lazy"></span>,<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> where <i>m</i> is a number of edges. This is currently the fastest run-time of a <a href="Strongly_polynomial" class="mw-redirect" title="Strongly polynomial">strongly polynomial</a> algorithm for this problem. Some variants of the Hungarian algorithm also benefit from parallel computing, including GPU acceleration.<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> If all weights are integers, then the run-time can be improved to <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle O(mn+n^{2}\log \log n)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>O</mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mi>n</mi>
<mo>+</mo>
<msup>
<mi>n</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle O(mn+n^{2}\log \log n)}</annotation>
</semantics>
</math></span><img src="./c8661bb2aae62d3f69c0b65e6b3a7abc1a6604c0.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:20.807ex; height:3.176ex;" alt="{\displaystyle O(mn+n^{2}\log \log n)}" loading="lazy"></span>, but the resulting algorithm is only weakly-polynomial.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> If the weights are integers, and all weights are at most <i>C</i> (where <i>C</i>&gt;1 is some integer), then the problem can be solved in <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle O(m{\sqrt {n}}\log(n\cdot C))}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>O</mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mrow class="MJX-TeXAtom-ORD">
<msqrt>
<mi>n</mi>
</msqrt>
</mrow>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo>⋅<!-- ⋅ --></mo>
<mi>C</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle O(m{\sqrt {n}}\log(n\cdot C))}</annotation>
</semantics>
</math></span><img src="./4b22cc76eb3e123874160f7726485fad7410a840.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.005ex; width:18.962ex; height:3.009ex;" alt="{\displaystyle O(m{\sqrt {n}}\log(n\cdot C))}" loading="lazy"></span> weakly-polynomial time in a method called <i>weight scaling</i>.<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
</p><p>In addition to the global methods, there are <i>local methods</i> which are based on finding local updates (rather than full augmenting paths). These methods have worse asymptotic runtime guarantees, but they often work better in practice. These algorithms are called <a href="Auction_algorithm" title="Auction algorithm">auction algorithms</a>, push-relabel algorithms, or preflow-push algorithms. Some of these algorithms were shown to be equivalent.<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup>
</p><p>Some of the local methods assume that the graph admits a <i>perfect matching</i>; if this is not the case, then some of these methods might run forever.<sup id="cite_ref-:0_1-1" class="reference"><a href="#cite_note-:0-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 3">: 3 </span></sup> A simple technical way to solve this problem is to extend the input graph to a <i>complete bipartite graph,</i> by adding artificial edges with very large weights. These weights should exceed the weights of all existing matchings, to prevent appearance of artificial edges in the possible solution.
</p><p>As shown by Mulmuley, Vazirani and Vazirani,<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> the problem of minimum weight perfect matching is converted to finding minors in the <a href="Adjacency_matrix" title="Adjacency matrix">adjacency matrix</a> of a graph. Using the <a href="Isolation_lemma" title="Isolation lemma">isolation lemma</a>, a minimum weight perfect matching in a graph can be found with probability at least <style data-mw-deduplicate="TemplateStyles:r1154941027">
/* start https://en.wikipedia.org/ */


.mw-parser-output .frac{white-space:nowrap}.mw-parser-output .frac .num,.mw-parser-output .frac .den{font-size:80%;line-height:0;vertical-align:super}.mw-parser-output .frac .den{vertical-align:sub}.mw-parser-output .sr-only{border:0;clip:rect(0,0,0,0);clip-path:polygon(0px 0px,0px 0px,0px 0px);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}


/* end https://en.wikipedia.org/ */
</style><span class="frac"><span class="num">1</span>⁄<span class="den">2</span></span>. For a graph with <i>n</i> vertices, it requires <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle O(\log ^{2}(n))}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>O</mi>
<mo stretchy="false">(</mo>
<msup>
<mi>log</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mo>⁡<!-- ⁡ --></mo>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo stretchy="false">)</mo>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle O(\log ^{2}(n))}</annotation>
</semantics>
</math></span><img src="./3504e9a0325bc9a82cfe4889213e0c3008dd1b54.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:10.813ex; height:3.176ex;" alt="{\displaystyle O(\log ^{2}(n))}" loading="lazy"></span> time.
</p>
<div class="mw-heading mw-heading3"><h3 id="Unbalanced_assignment">Unbalanced assignment</h3></div>
<p>In the unbalanced assignment problem, the larger part of the bipartite graph has <i>n</i> vertices and the smaller part has <i>r</i>&lt;<i>n</i> vertices. There is also a constant <i>s</i> which is at most the cardinality of a maximum matching in the graph. The goal is to find a minimum-cost matching of size exactly <i>s</i>. The most common case is the case in which the graph admits a one-sided-perfect matching (i.e., a matching of size <i>r</i>), and <i>s</i>=<i>r</i>.
</p><p>Unbalanced assignment can be reduced to a balanced assignment. The naive reduction is to add <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n-r}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mo>−<!-- − --></mo>
<mi>r</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n-r}</annotation>
</semantics>
</math></span><img src="./86c0aa8d9c52b096540edd6e6a91eb8f790a8b7e.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:5.284ex; height:2.176ex;" alt="{\displaystyle n-r}" loading="lazy"></span> new vertices to the smaller part and connect them to the larger part using edges of cost 0. However, this requires <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n(n-r)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mo stretchy="false">(</mo>
<mi>n</mi>
<mo>−<!-- − --></mo>
<mi>r</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n(n-r)}</annotation>
</semantics>
</math></span><img src="./137dd4aae523a75f5dd223b67951b0b8eab6f324.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:8.488ex; height:2.843ex;" alt="{\displaystyle n(n-r)}" loading="lazy"></span> new edges. A more efficient reduction is called the <i>doubling technique</i>. Here, a new graph <i>G'</i> is built from two copies of the original graph <i>G</i>: a forward copy <i>Gf</i> and a backward copy <i>Gb.</i> The backward copy is "flipped", so that, in each side of <i>G'</i>, there are now <i>n</i>+<i>r</i> vertices. Between the copies, we need to add two kinds of linking edges:<sup id="cite_ref-:0_1-2" class="reference"><a href="#cite_note-:0-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 4–6">: 4–6 </span></sup>
</p>
<ul><li>Large-to-large: from each vertex in the larger part of <i>Gf</i>, add a zero-cost edge to the corresponding vertex in <i>Gb</i>.</li>
<li>Small-to-small: if the original graph does not have a one-sided-perfect matching, then from each vertex in the smaller part of <i>Gf</i>, add a very-high-cost edge to the corresponding vertex in <i>Gb</i>.</li></ul>
<p>All in all, at most <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n+r}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mo>+</mo>
<mi>r</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n+r}</annotation>
</semantics>
</math></span><img src="./d6a5e6925440ca0c67b8608c15b3fc842d6b3199.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:5.284ex; height:2.176ex;" alt="{\displaystyle n+r}" loading="lazy"></span> new edges are required. The resulting graph always has a perfect matching of size <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle n+r}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>n</mi>
<mo>+</mo>
<mi>r</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle n+r}</annotation>
</semantics>
</math></span><img src="./d6a5e6925440ca0c67b8608c15b3fc842d6b3199.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.505ex; width:5.284ex; height:2.176ex;" alt="{\displaystyle n+r}" loading="lazy"></span>. A minimum-cost perfect matching in this graph must consist of minimum-cost maximum-cardinality matchings in <i>Gf</i> and <i>Gb.</i> The main problem with this doubling technique is that there is no speed gain when <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle r\ll n}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>r</mi>
<mo>≪<!-- ≪ --></mo>
<mi>n</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle r\ll n}</annotation>
</semantics>
</math></span><img src="./d2e3eba9748707971ca5eff9ebdd7367035a18c8.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.338ex; width:6.057ex; height:1.843ex;" alt="{\displaystyle r\ll n}" loading="lazy"></span>.
</p><p>Instead of using reduction, the unbalanced assignment problem can be solved by directly generalizing existing algorithms for balanced assignment. The <a href="Hungarian_algorithm" title="Hungarian algorithm">Hungarian algorithm</a> can be generalized to solve the problem in <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle O(ms+s^{2}\log r)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>O</mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mi>s</mi>
<mo>+</mo>
<msup>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>r</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle O(ms+s^{2}\log r)}</annotation>
</semantics>
</math></span><img src="./643abc1cc3b267708c031535dacebaea3763f1ee.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:16.493ex; height:3.176ex;" alt="{\displaystyle O(ms+s^{2}\log r)}" loading="lazy"></span> strongly-polynomial time. In particular, if <i>s</i>=<i>r</i> then the runtime is <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle O(mr+r^{2}\log r)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>O</mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mi>r</mi>
<mo>+</mo>
<msup>
<mi>r</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>r</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle O(mr+r^{2}\log r)}</annotation>
</semantics>
</math></span><img src="./2d539da2c847e451f6ffffd2c27224aab018c6b4.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:16.41ex; height:3.176ex;" alt="{\displaystyle O(mr+r^{2}\log r)}" loading="lazy"></span>. If the weights are integers, then Thorup's method can be used to get a runtime of <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle O(ms+s^{2}\log \log r)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mi>O</mi>
<mo stretchy="false">(</mo>
<mi>m</mi>
<mi>s</mi>
<mo>+</mo>
<msup>
<mi>s</mi>
<mrow class="MJX-TeXAtom-ORD">
<mn>2</mn>
</mrow>
</msup>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>log</mi>
<mo>⁡<!-- ⁡ --></mo>
<mi>r</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle O(ms+s^{2}\log \log r)}</annotation>
</semantics>
</math></span><img src="./f91967a0cd5e7e446df7e713569c23afe3548ee1.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:19.852ex; height:3.176ex;" alt="{\displaystyle O(ms+s^{2}\log \log r)}" loading="lazy"></span>.<sup id="cite_ref-:0_1-3" class="reference"><a href="#cite_note-:0-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 6">: 6 </span></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Solution_by_linear_programming">Solution by linear programming</h3></div>
<p>The assignment problem can be solved by presenting it as a <a href="Linear_program" class="mw-redirect" title="Linear program">linear program</a>. For convenience we will present the maximization problem. Each edge <span class="texhtml">(<i>i</i>,<i>j</i>)</span>, where <i>i</i> is in A and <i>j</i> is in T, has a weight <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\textstyle w_{ij}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="false" scriptlevel="0">
<msub>
<mi>w</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\textstyle w_{ij}}</annotation>
</semantics>
</math></span><img src="./7250b6181b9bba7a8edf5845fb59dfc7fe1f722f.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.005ex; width:3.141ex; height:2.343ex;" alt="{\textstyle w_{ij}}" loading="lazy"></span>. For each edge <span class="nowrap">⁠<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle (i,j)}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mo stretchy="false">(</mo>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
<mo stretchy="false">)</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle (i,j)}</annotation>
</semantics>
</math></span><img src="./8ef21910f980c6fca2b15bee102a7a0d861ed712.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:4.604ex; height:2.843ex;" alt="{\displaystyle (i,j)}" loading="lazy"></span>⁠</span> we have a variable <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\textstyle x_{ij}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="false" scriptlevel="0">
<msub>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\textstyle x_{ij}}</annotation>
</semantics>
</math></span><img src="./a350feefa817472ab65b8e836c3149be3cffedf4.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -1.005ex; width:2.807ex; height:2.343ex;" alt="{\textstyle x_{ij}}" loading="lazy"></span><sub>.</sub> The variable is 1 if the edge is contained in the matching and 0 otherwise, so we set the domain constraints:
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 0\leq x_{ij}\leq 1{\text{ for }}i,j\in A,T,\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>0</mn>
<mo>≤<!-- ≤ --></mo>
<msub>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
<mo>≤<!-- ≤ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;for&nbsp;</mtext>
</mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
<mo>,</mo>
<mi>T</mi>
<mo>,</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 0\leq x_{ij}\leq 1{\text{ for }}i,j\in A,T,\,}</annotation>
</semantics>
</math></span></span> <span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x_{ij}\in \mathbb {Z} {\text{ for }}i,j\in A,T.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
<mo>∈<!-- ∈ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="double-struck">Z</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;for&nbsp;</mtext>
</mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
<mo>,</mo>
<mi>T</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle x_{ij}\in \mathbb {Z} {\text{ for }}i,j\in A,T.}</annotation>
</semantics>
</math></span></span>
</p><p>The total weight of the matching is: <span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \sum _{(i,j)\in A\times T}w_{ij}x_{ij}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">(</mo>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
<mo stretchy="false">)</mo>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
<mo>×<!-- × --></mo>
<mi>T</mi>
</mrow>
</munder>
<msub>
<mi>w</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
<msub>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \sum _{(i,j)\in A\times T}w_{ij}x_{ij}}</annotation>
</semantics>
</math></span><img src="./e1de09cfde145ed0c829f6ccfd701a6db67e8cab.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.505ex; width:14.081ex; height:6.009ex;" alt="{\displaystyle \sum _{(i,j)\in A\times T}w_{ij}x_{ij}}" loading="lazy"></span>. The goal is to find a maximum-weight perfect matching.
</p><p>To guarantee that the variables indeed represent a perfect matching, we add constraints saying that each vertex is adjacent to exactly one edge in the matching, i.e.,
<span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \sum _{j\in T}x_{ij}=1{\text{ for }}i\in A,\,~~~\sum _{i\in A}x_{ij}=1{\text{ for }}j\in T,\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
<mo>∈<!-- ∈ --></mo>
<mi>T</mi>
</mrow>
</munder>
<msub>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
<mo>=</mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;for&nbsp;</mtext>
</mrow>
<mi>i</mi>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
<mo>,</mo>
<mspace width="thinmathspace"></mspace>
<mtext>&nbsp;</mtext>
<mtext>&nbsp;</mtext>
<mtext>&nbsp;</mtext>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
</mrow>
</munder>
<msub>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
<mo>=</mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;for&nbsp;</mtext>
</mrow>
<mi>j</mi>
<mo>∈<!-- ∈ --></mo>
<mi>T</mi>
<mo>,</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \sum _{j\in T}x_{ij}=1{\text{ for }}i\in A,\,~~~\sum _{i\in A}x_{ij}=1{\text{ for }}j\in T,\,}</annotation>
</semantics>
</math></span></span>.
</p><p>All in all we have the following LP:
</p><p><span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{maximize}}~~\sum _{(i,j)\in A\times T}w_{ij}x_{ij}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mtext>maximize</mtext>
</mrow>
<mtext>&nbsp;</mtext>
<mtext>&nbsp;</mtext>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mo stretchy="false">(</mo>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
<mo stretchy="false">)</mo>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
<mo>×<!-- × --></mo>
<mi>T</mi>
</mrow>
</munder>
<msub>
<mi>w</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
<msub>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\text{maximize}}~~\sum _{(i,j)\in A\times T}w_{ij}x_{ij}}</annotation>
</semantics>
</math></span></span><span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{subject to}}~~\sum _{j\in T}x_{ij}=1{\text{ for }}i\in A,\,~~~\sum _{i\in A}x_{ij}=1{\text{ for }}j\in T}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mrow class="MJX-TeXAtom-ORD">
<mtext>subject to</mtext>
</mrow>
<mtext>&nbsp;</mtext>
<mtext>&nbsp;</mtext>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
<mo>∈<!-- ∈ --></mo>
<mi>T</mi>
</mrow>
</munder>
<msub>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
<mo>=</mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;for&nbsp;</mtext>
</mrow>
<mi>i</mi>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
<mo>,</mo>
<mspace width="thinmathspace"></mspace>
<mtext>&nbsp;</mtext>
<mtext>&nbsp;</mtext>
<mtext>&nbsp;</mtext>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
</mrow>
</munder>
<msub>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
<mo>=</mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;for&nbsp;</mtext>
</mrow>
<mi>j</mi>
<mo>∈<!-- ∈ --></mo>
<mi>T</mi>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle {\text{subject to}}~~\sum _{j\in T}x_{ij}=1{\text{ for }}i\in A,\,~~~\sum _{i\in A}x_{ij}=1{\text{ for }}j\in T}</annotation>
</semantics>
</math></span></span><span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle 0\leq x_{ij}\leq 1{\text{ for }}i,j\in A,T,\,}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<mn>0</mn>
<mo>≤<!-- ≤ --></mo>
<msub>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
<mo>≤<!-- ≤ --></mo>
<mn>1</mn>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;for&nbsp;</mtext>
</mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
<mo>,</mo>
<mi>T</mi>
<mo>,</mo>
<mspace width="thinmathspace"></mspace>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle 0\leq x_{ij}\leq 1{\text{ for }}i,j\in A,T,\,}</annotation>
</semantics>
</math></span></span><span class="mwe-math-element mwe-math-element-block"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle x_{ij}\in \mathbb {Z} {\text{ for }}i,j\in A,T.}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<msub>
<mi>x</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
<mi>j</mi>
</mrow>
</msub>
<mo>∈<!-- ∈ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi mathvariant="double-struck">Z</mi>
</mrow>
<mrow class="MJX-TeXAtom-ORD">
<mtext>&nbsp;for&nbsp;</mtext>
</mrow>
<mi>i</mi>
<mo>,</mo>
<mi>j</mi>
<mo>∈<!-- ∈ --></mo>
<mi>A</mi>
<mo>,</mo>
<mi>T</mi>
<mo>.</mo>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle x_{ij}\in \mathbb {Z} {\text{ for }}i,j\in A,T.}</annotation>
</semantics>
</math></span></span>This is an integer linear program. However, we can solve it without the integrality constraints (i.e., drop the last constraint), using standard methods for solving continuous linear programs. While this formulation allows also fractional variable values, in this special case, the LP always has an optimal solution where the variables take integer values. This is because the constraint matrix of the fractional LP is <a href="Unimodular_matrix#Total_unimodularity" title="Unimodular matrix">totally unimodular</a>&nbsp;– it satisfies the four conditions of Hoffman and Gale.
</p>
<div class="mw-heading mw-heading3"><h3 id="Other_methods_and_approximation_algorithms">Other methods and approximation algorithms</h3></div>
<p>Other approaches for the assignment problem exist and are reviewed by Duan and Pettie<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup> (see Table II). Their work proposes an <a href="Approximation_algorithm" title="Approximation algorithm">approximation algorithm</a> for the assignment problem (and the more general <a href="Maximum_weight_matching" title="Maximum weight matching">maximum weight matching</a> problem), which runs in linear time for any fixed error bound.
</p>
<div class="mw-heading mw-heading2"><h2 id="Many-to-many_assignment">Many-to-many assignment</h2></div>
<p>In the basic assignment problem, each agent is assigned to at most one task and each task is assigned to at most one agent. In the <b>many-to-many assignment problem</b>,<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> each agent <i>i</i> may take up to <i>c<sub>i</sub></i> tasks (<i>c<sub>i</sub></i> is called the agent's <i>capacity</i>), and each task <i>j</i> may be taken by up to <i>d<sub>j</sub></i> agents simultaneously (<i>d<sub>j</sub></i> is called the task's <i>capacity</i>). If the sums of capacities in both sides are equal (<span class="mwe-math-element mwe-math-element-inline"><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle \sum _{i}c_{i}=\sum _{j}d_{j}}">
<semantics>
<mrow class="MJX-TeXAtom-ORD">
<mstyle displaystyle="true" scriptlevel="0">
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</munder>
<msub>
<mi>c</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>i</mi>
</mrow>
</msub>
<mo>=</mo>
<munder>
<mo>∑<!-- ∑ --></mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
</mrow>
</munder>
<msub>
<mi>d</mi>
<mrow class="MJX-TeXAtom-ORD">
<mi>j</mi>
</mrow>
</msub>
</mstyle>
</mrow>
<annotation encoding="application/x-tex">{\displaystyle \sum _{i}c_{i}=\sum _{j}d_{j}}</annotation>
</semantics>
</math></span><img src="./833982e6f9c80bdd2ab3af9be9ca297024d61796.svg" class="mwe-math-fallback-image-inline mw-invert skin-invert" aria-hidden="true" style="vertical-align: -3.338ex; width:14.508ex; height:5.843ex;" alt="{\displaystyle \sum _{i}c_{i}=\sum _{j}d_{j}}" loading="lazy"></span>), then the problem is <i>balanced</i>, and the goal is to find a perfect matching (assign exactly <i>c<sub>i</sub></i> tasks to each agent <i>i</i> and exactly <i>d<sub>j</sub></i> agents to each task <i>j</i>) such that the total cost is as small as possible.
</p><p>The problem can be solved by reduction to the <a href="Network_flow_problem" title="Network flow problem">minimum cost network flow problem</a>.<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> Construct a flow network with the following layers:
</p>
<ul><li>Layer 1: One source-node <b>s</b>.</li>
<li>Layer 2: a node for each agent. There is an arc from <b>s</b> to each agent <i>i</i>, with cost 0 and capacity <i>c<sub>i</sub></i> .</li>
<li>Level 3: a node for each task. There is an arc from each agent <i>i</i> to each task <i>j</i>, with the corresponding cost, and capacity 1.</li>
<li>Level 4: One sink-node <b>t</b>. There is an arc from each task to <b>t</b>, with cost 0 and capacity <i>d<sub>j</sub></i>.</li></ul>
<p>An integral maximum flow of minimum cost can be found in polynomial time; see <a href="Network_flow_problem" title="Network flow problem">network flow problem</a>. Every integral maximum flow in this network corresponds to a matching in which at most <i>c<sub>i</sub></i> tasks are assigned to each agent <i>i</i> and at most <i>d<sub>j</sub></i> agents are assigned to each task <i>j</i> (in the balanced case, exactly <i>c<sub>i</sub></i> tasks are assigned to <i>i</i> and exactly <i>d<sub>j</sub></i> agents are assigned to <i>j</i>). A min-cost maximum flow corresponds to a min-cost assignment.
</p>
<div class="mw-heading mw-heading2"><h2 id="Generalization">Generalization</h2></div>
<p>When phrased as a graph theory problem, the assignment problem can be extended from <a href="Bipartite_graph" title="Bipartite graph">bipartite graphs</a> to arbitrary graphs. The corresponding problem, of finding a <a href="Matching_(graph_theory)" title="Matching (graph theory)">matching</a> in a <a href="Weighted_graph" class="mw-redirect" title="Weighted graph">weighted graph</a> where the sum of weights is maximized, is called the <a href="Maximum_weight_matching" title="Maximum weight matching">maximum weight matching problem</a>.
</p><p>Another generalization of the assignment problem is extending the number of sets to be matched from two to many. So that rather than matching agents to tasks, the problem is extended to matching agents to tasks to time intervals to locations. This results in <a href="Multidimensional_assignment_problem_(MAP)" class="mw-redirect" title="Multidimensional assignment problem (MAP)">Multidimensional assignment problem (MAP)</a>.
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="Auction_algorithm" title="Auction algorithm">Auction algorithm</a></li>
<li><a href="Generalized_assignment_problem" title="Generalized assignment problem">Generalized assignment problem</a></li>
<li><a href="Linear_bottleneck_assignment_problem" title="Linear bottleneck assignment problem">Linear bottleneck assignment problem</a></li>
<li><a href="Monge-Kantorovich_transportation_problem" class="mw-redirect" title="Monge-Kantorovich transportation problem">Monge-Kantorovich transportation problem</a>, a more general formulation</li>
<li><a href="National_Resident_Matching_Program" title="National Resident Matching Program">National Resident Matching Program</a></li>
<li><a href="Quadratic_assignment_problem" title="Quadratic assignment problem">Quadratic assignment problem</a></li>
<li><a href="Rank-maximal_matching" class="mw-redirect" title="Rank-maximal matching">Rank-maximal matching</a></li>
<li><a href="Secretary_problem" title="Secretary problem">Secretary problem</a></li>
<li><a href="Stable_matching_problem" title="Stable matching problem">Stable matching problem</a></li>
<li><a href="Stable_roommates_problem" title="Stable roommates problem">Stable roommates problem</a></li>
<li><a href="Weapon_target_assignment_problem" title="Weapon target assignment problem">Weapon target assignment problem</a></li>
<li><a href="House_allocation_problem" title="House allocation problem">House allocation problem</a></li>
<li><a href="Multidimensional_assignment_problem_(MAP)" class="mw-redirect" title="Multidimensional assignment problem (MAP)">Multidimensional assignment problem (MAP)</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="References_and_further_reading">References and further reading</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-:0-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-:0_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-:0_1-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-:0_1-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-:0_1-3"><sup><i><b>d</b></i></sup></a></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite id="CITEREFLyle_Ramshaw,_Robert_E._Tarjan2012" class="citation web cs1">Lyle Ramshaw, Robert E. Tarjan (2012). <a rel="nofollow" class="external text" href="https://www.labs.hpe.com/techreports/2012/HPL-2012-40.pdf">"On minimum-cost assignments in unbalanced bipartite graphs"</a> <span class="cs1-format">(PDF)</span>. <i>HP research labs</i>.</cite></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text"><cite id="CITEREFFredmanTarjan1987" class="citation journal cs1">Fredman, Michael L.; Tarjan, Robert Endre (1987-07-01). <a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F28869.28874">"Fibonacci Heaps and Their Uses in Improved Network Optimization Algorithms"</a>. <i>J. ACM</i>. <b>34</b> (3): <span class="nowrap">596–</span>615. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F28869.28874">10.1145/28869.28874</a></span>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0004-5411">0004-5411</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:7904683">7904683</a>.</cite></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><cite id="CITEREFKawtikwarNagi2024" class="citation journal cs1">Kawtikwar, Samiran; Nagi, Rakesh (2024-05-01). <a rel="nofollow" class="external text" href="https://linkinghub.elsevier.com/retrieve/pii/S0743731524000029">"HyLAC: Hybrid linear assignment solver in CUDA"</a>. <i>Journal of Parallel and Distributed Computing</i>. <b>187</b>: 104838. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1016%2Fj.jpdc.2024.104838">10.1016/j.jpdc.2024.104838</a></span>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0743-7315">0743-7315</a>.</cite></span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><cite id="CITEREFThorup2004" class="citation journal cs1">Thorup, Mikkel (2004-11-01). <a rel="nofollow" class="external text" href="https://doi.org/10.1016%2Fj.jcss.2004.04.003">"Integer priority queues with decrease key in constant time and the single source shortest paths problem"</a>. <i>Journal of Computer and System Sciences</i>. Special Issue on STOC 2003. <b>69</b> (3): <span class="nowrap">330–</span>353. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1016%2Fj.jcss.2004.04.003">10.1016/j.jcss.2004.04.003</a></span>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0022-0000">0022-0000</a>.</cite></span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"><cite id="CITEREFGabowTarjan1989" class="citation journal cs1">Gabow, H.; Tarjan, R. (1989-10-01). "Faster Scaling Algorithms for Network Problems". <i>SIAM Journal on Computing</i>. <b>18</b> (5): <span class="nowrap">1013–</span>1036. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1137%2F0218069">10.1137/0218069</a>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0097-5397">0097-5397</a>.</cite></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite id="CITEREFGoldbergKennedy1997" class="citation journal cs1">Goldberg, A.; Kennedy, R. (1997-11-01). "Global Price Updates Help". <i>SIAM Journal on Discrete Mathematics</i>. <b>10</b> (4): <span class="nowrap">551–</span>572. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1137%2FS0895480194281185">10.1137/S0895480194281185</a>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0895-4801">0895-4801</a>.</cite></span>
</li>
<li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"><cite id="CITEREFOrlinAhuja1992" class="citation journal cs1">Orlin, James B.; Ahuja, Ravindra K. (1992-02-01). "New scaling algorithms for the assignment and minimum mean cycle problems". <i>Mathematical Programming</i>. <b>54</b> (<span class="nowrap">1–</span>3): <span class="nowrap">41–</span>56. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2FBF01586040">10.1007/BF01586040</a>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0025-5610">0025-5610</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:18213947">18213947</a>.</cite></span>
</li>
<li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"><cite id="CITEREFAlfaroPerezValenciaVargas2022" class="citation journal cs1">Alfaro, Carlos A.; Perez, Sergio L.; Valencia, Carlos E.; Vargas, Marcos C. (2022-06-01). <span class="id-lock-subscription" title="Paid subscription required"><a rel="nofollow" class="external text" href="https://doi.org/10.1007/s11590-021-01791-4">"The assignment problem revisited"</a></span>. <i>Optimization Letters</i>. <b>16</b> (5): <span class="nowrap">1531–</span>1548. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2Fs11590-021-01791-4">10.1007/s11590-021-01791-4</a>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/1862-4480">1862-4480</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:238644205">238644205</a>.</cite></span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"><cite id="CITEREFMulmuleyVaziraniVazirani1987" class="citation journal cs1"><a href="Ketan_Mulmuley" title="Ketan Mulmuley">Mulmuley, Ketan</a>; <a href="Umesh_Vazirani" title="Umesh Vazirani">Vazirani, Umesh</a>; <a href="Vijay_Vazirani" title="Vijay Vazirani">Vazirani, Vijay</a> (1987). "Matching is as easy as matrix inversion". <i>Combinatorica</i>. <b>7</b> (1): <span class="nowrap">105–</span>113. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1007%2FBF02579206">10.1007/BF02579206</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:47370049">47370049</a>.</cite></span>
</li>
<li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"><cite id="CITEREFDuanPettie2014" class="citation journal cs1">Duan, Ran; Pettie, Seth (2014-01-01). <span class="id-lock-subscription" title="Paid subscription required"><a rel="nofollow" class="external text" href="https://dl.acm.org/doi/10.1145/2529989">"Linear-Time Approximation for Maximum Weight Matching"</a></span>. <i>Journal of the ACM</i>. <b>61</b>: <span class="nowrap">1–</span>23. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F2529989">10.1145/2529989</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:207208641">207208641</a>.</cite></span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><cite id="CITEREFZhuLiuZhangZhu2016" class="citation journal cs1">Zhu, Haibin; Liu, Dongning; Zhang, Siqin; Zhu, Yu; Teng, Luyao; Teng, Shaohua (2016-03-07). <a rel="nofollow" class="external text" href="https://www.sciencedirect.com/science/article/pii/S0304397516000037">"Solving the Many to Many assignment problem by improving the Kuhn–Munkres algorithm with backtracking"</a>. <i>Theoretical Computer Science</i>. <b>618</b>: <span class="nowrap">30–</span>41. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1016%2Fj.tcs.2016.01.002">10.1016/j.tcs.2016.01.002</a>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0304-3975">0304-3975</a>.</cite></span>
</li>
<li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><cite id="CITEREFD.W." class="citation web cs1">D.W. <a rel="nofollow" class="external text" href="https://cs.stackexchange.com/questions/161149/high-multiplicity-maximum-weight-matching/161151#161151">"High-multiplicity maximum-weight matching"</a>. <i>Computer Science Stack Exchange</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2025-01-15</span></span>.</cite></span>
</li>
</ol></div></div>
<ul><li><cite id="CITEREFBrualdi2006" class="citation book cs1">Brualdi, Richard A. (2006). <span class="id-lock-registration" title="Free registration required"><a rel="nofollow" class="external text" href="https://archive.org/details/combinatorialmat0000brua"><i>Combinatorial matrix classes</i></a></span>. Encyclopedia of Mathematics and Its Applications. Vol.&nbsp;108. Cambridge: <a href="Cambridge_University_Press" title="Cambridge University Press">Cambridge University Press</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-521-86565-4</bdi>. <a href="Zbl_(identifier)" class="mw-redirect" title="Zbl (identifier)">Zbl</a>&nbsp;<a rel="nofollow" class="external text" href="https://zbmath.org/?format=complete&amp;q=an:1106.05001">1106.05001</a>.</cite></li>
<li><cite id="CITEREFBurkardM._Dell'AmicoS._Martello2012" class="citation book cs1"><a href="Rainer_Burkard" title="Rainer Burkard">Burkard, Rainer</a>; M. Dell'Amico; S. Martello (2012). <i>Assignment Problems (Revised reprint)</i>. SIAM. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-61197-222-1</bdi>.</cite></li>
<li><cite id="CITEREFBertsekas1998" class="citation book cs1"><a href="Dimitri_Bertsekas" title="Dimitri Bertsekas">Bertsekas, Dimitri</a> (1998). <i>Network Optimization: Continuous and Discrete Models</i>. Athena Scientific. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-886529-02-1</bdi>.</cite></li></ul>
<div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}


/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1236075235">
/* start https://en.wikipedia.org/ */


.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}


/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox authority-control" aria-labelledby="Authority_control_databases_frameless&amp;#124;text-top&amp;#124;10px&amp;#124;alt=Edit_this_at_Wikidata&amp;#124;link=https&amp;#58;//www.wikidata.org/wiki/Q620614#identifiers&amp;#124;class=noprint&amp;#124;Edit_this_at_Wikidata644" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div id="Authority_control_databases_frameless&amp;#124;text-top&amp;#124;10px&amp;#124;alt=Edit_this_at_Wikidata&amp;#124;link=https&amp;#58;//www.wikidata.org/wiki/Q620614#identifiers&amp;#124;class=noprint&amp;#124;Edit_this_at_Wikidata644" style="font-size:114%;margin:0 4em">Authority control databases </div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">National</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"><ul><li><span class="uid"><a rel="nofollow" class="external text" href="https://id.loc.gov/authorities/sh00004835">United States</a></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://www.nli.org.il/en/authorities/987007290944005171">Israel</a></span></li></ul></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"><ul><li><span class="uid"><a rel="nofollow" class="external text" href="https://lux.collections.yale.edu/view/concept/6ce6ef89-232c-4916-9d4d-d11e1557971d">Yale LUX</a></span></li></ul></div></td></tr></tbody></table></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-07-21" href="https://en.wikipedia.org/wiki/?title=Assignment_problem&amp;oldid=1301763046">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>